package com.onedec.menu.dao;

import com.onedec.menu.entity.OnedecRolePermission;
import com.onedec.menu.entity.OnedecRolePermissionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OnedecRolePermissionDao {
    long countByExample(OnedecRolePermissionExample example);

    int deleteByExample(OnedecRolePermissionExample example);

    int deleteByPrimaryKey(Integer rolePermissionId);

    int insert(OnedecRolePermission record);

    int insertSelective(OnedecRolePermission record);

    List<OnedecRolePermission> selectByExample(OnedecRolePermissionExample example);

    OnedecRolePermission selectByPrimaryKey(Integer rolePermissionId);

    int updateByExampleSelective(@Param("record") OnedecRolePermission record, @Param("example") OnedecRolePermissionExample example);

    int updateByExample(@Param("record") OnedecRolePermission record, @Param("example") OnedecRolePermissionExample example);

    int updateByPrimaryKeySelective(OnedecRolePermission record);

    int updateByPrimaryKey(OnedecRolePermission record);
}